# coding:utf-8
from appium import webdriver
from selenium import webdriver

#初始配置
def config(self):
	desired_caps = {}
	desired_caps['platformName'] = 'Android'
	desired_caps['platformVersion'] = '6.0'
	desired_caps['deviceName'] = 'MXF0215826004374'
	desired_caps['appPackage'] = 'cc.vv.btong'
	desired_caps['appActivity'] = 'cc.vv.btong.module.bt_main.ui.SplashActivity'
	desired_caps['noReset'] = 'True'
	desired_caps['unicodeKeyboard'] = 'True'
	desired_caps['resetKeyboard'] = 'True'

	self.driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps)
	self.driver.implicitly_wait(15)